package com.hl.card.credit.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledService {

    private Logger log= LoggerFactory.getLogger(ScheduledService.class);

    //每天晚上0点执行订单状态同步
    @Scheduled(cron = "0 0 0 * * ?")
    public void scheduled(){
        log.info("=====>>>>>使用cron  {}",System.currentTimeMillis());
    }

}
